“Smart Contact Form” Documentation by “Ryan Davies” v1.0


“Smart Contact Form”

Created: 12/06/2010
By: Ryan Davies
Email: ryan@rnrit.co.uk

Thank you for purchasing my script. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!


Table of Contents

  1. Installing the code
  2. Customizing
  3. Sources and Credits

A) Installing the code - top

IMPORTANT NOTE - If you want to include this code on a page with a .html or .htm extension, you will need to allow php scripts to run on the page. This is done via a .htaccess file. you can read how to implement this using the following link. http://www.desilva.biz/php/phpinhtml.html

IMPORTANT NOTE - You need to set the permissions of the uploads folder to 775, so that the webserver can write the uploaded files there temporarily. Once the email has been sent the file is deleted.

Installing the code is very straight forward.

  1. Edit "validation/form_code.php"
  2. Include the code on your page
  3. In your download, the contact form will work as shown in the demo, the basic steps for incorporating the form onto an existing page are as follows.

  4. The script is now ready to go! Upload all of your files to your webspace.
  5. To see this code in a html page, please open index.php in a text editor.

If you get stuck, open index.php in a text editor to see where to include the code, or email me via my profile page and I will be happy to help.


B) Customizing - top

The css for this form is quite small and straight forward, the list of classes can be found in css/global.css. You can alter the attributes of these classes. However if you change the names of the classes, be sure to change the values in validation/validate.js and validation/form_code.php

You can add extra form fields as you would normally do. However if you want to have more fields that are validated, the PHP and javascript files will need new functions added to them. That goes beyond the scope of this file, however if you would like to add more validation fields, please email me via my profile page and I will supply the required code at no extra charge.


G) Sources and Credits - top

I've used the following js pluggins


Once again, thank you so much for purchasing this script. As I said at the beginning, I'd be glad to help you if you have any questions relating to this script. No guarantees, but I'll do my best to assist.

Ryan Davies

Go To Table of Contents